package IOperation;

import BOOK.Book;
import BOOK.BookList;

/**
 * Created with IntelliJ IDEA.
 * User: wenxiwen
 * Date: 2022/4/14
 * Time: 20:31
 * Description: No Description
 */
public class Exit implements IOperation{
    public void work(BookList bookList) {
        System.out.println("退出系统");

        int index = bookList.getCount();
        for (int i = 0; i < index; i++) {
            bookList.setBook(i,null);
        }
        System.exit(0);
    }
}